﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EFong.Contract
{
    [DataContract]
    public class ROtherBusiness : Order
    {
        public ROtherBusiness()
        {
            OrderType = "其他";
        }

        private string _project;
        [DataMember]
        public string Project
        {
            get { return _project; }
            set { _project = value; }
        }

        private string _subProject;
        [DataMember]
        public string SubProject
        {
            get { return _subProject; }
            set { _subProject = value; }
        }

        private string _customer;
        [DataMember]
        public string Customer
        {
            get { return _customer; }
            set { _customer = value; }
        }

        private string _customerStatus;
        [DataMember]
        public string CustomerStatus
        {
            get { return _customerStatus; }
            set { _customerStatus = value; }
        }

        private string _status;
        [DataMember]
        public string Status
        {
            get { return _status; }
            set { _status = value; }
        }

        private decimal _totalPrice;
        [DataMember]
        public decimal TotalPrice
        {
            get { return _totalPrice; }
            set { _totalPrice = value; }
        }

        private DateTime _projectDate = DateTime.Now;
        [DataMember]
        public DateTime ProjectDate
        {
            get { return _projectDate; }
            set { _projectDate = value; }
        }

        public override bool Equals(object obj)
        {
            OtherBusiness temp = obj as OtherBusiness;
            if (temp == null)
                return false;
            return (this.ID.Equals(temp.ID));
        }
    }
}
